package com.haidechizi.util.lock.event;

import com.haidechizi.util.lock.annotation.Lock;
import lombok.Data;
import org.aspectj.lang.ProceedingJoinPoint;

import java.util.EventObject;

/**
 * @author: wangdejun
 * @create: 2019-12-10 20:37
 **/
@Data
public class LockContext extends EventObject {

    private Lock lock;
    private ProceedingJoinPoint joinPoint;

    public LockContext(Object source, Lock lock, ProceedingJoinPoint joinPoint) {
        super(source);
        this.lock = lock;
        this.joinPoint = joinPoint;
    }
}
